home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / editors / emcs1857 / 1857el~1.zoo / lisp / sort.elc < prev    next >
Emacs Compiled Lisp  |  1992-02-04  |  8.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
1% dexvert Combustion 2 Particle Library (other/combustion2ParticleLibrary) ext Unsupported
100% file Emacs v18 byte-compiled Lisp data default
99% file data default
100% gt2 Kopftext: '(provide (quote sort)) default (weak)
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/x-emacs-lisp default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0a 28 70 72 6f 76 69 64 | 65 20 28 71 75 6f 74 65 |.(provid|e (quote|
|00000010| 20 73 6f 72 74 29 29 0a | 0a 28 64 65 66 75 6e 20 | sort)).|.(defun |
|00000020| 73 6f 72 74 2d 73 75 62 | 72 20 28 72 65 76 65 72 |sort-sub|r (rever|
|00000030| 73 65 20 6e 65 78 74 72 | 65 63 66 75 6e 20 65 6e |se nextr|ecfun en|
|00000040| 64 72 65 63 66 75 6e 20 | 26 6f 70 74 69 6f 6e 61 |drecfun |&optiona|
|00000050| 6c 20 73 74 61 72 74 6b | 65 79 66 75 6e 20 65 6e |l startk|eyfun en|
|00000060| 64 6b 65 79 66 75 6e 29 | 20 22 5c 0a 47 65 6e 65 |dkeyfun)| "\.Gene|
|00000070| 72 61 6c 20 74 65 78 74 | 20 73 6f 72 74 69 6e 67 |ral text| sorting|
|00000080| 20 72 6f 75 74 69 6e 65 | 20 74 6f 20 64 69 76 69 | routine| to divi|
|00000090| 64 65 20 62 75 66 66 65 | 72 20 69 6e 74 6f 20 72 |de buffe|r into r|
|000000a0| 65 63 6f 72 64 73 20 61 | 6e 64 20 73 6f 72 74 20 |ecords a|nd sort |
|000000b0| 74 68 65 6d 2e 0a 41 72 | 67 75 6d 65 6e 74 73 20 |them..Ar|guments |
|000000c0| 61 72 65 20 52 45 56 45 | 52 53 45 20 4e 45 58 54 |are REVE|RSE NEXT|
|000000d0| 52 45 43 46 55 4e 20 45 | 4e 44 52 45 43 46 55 4e |RECFUN E|NDRECFUN|
|000000e0| 20 26 6f 70 74 69 6f 6e | 61 6c 20 53 54 41 52 54 | &option|al START|
|000000f0| 4b 45 59 46 55 4e 20 45 | 4e 44 4b 45 59 46 55 4e |KEYFUN E|NDKEYFUN|
|00000100| 2e 0a 0a 57 65 20 63 6f | 6e 73 69 64 65 72 20 74 |...We co|nsider t|
|00000110| 68 69 73 20 70 6f 72 74 | 69 6f 6e 20 6f 66 20 74 |his port|ion of t|
|00000120| 68 65 20 62 75 66 66 65 | 72 20 74 6f 20 62 65 20 |he buffe|r to be |
|00000130| 64 69 76 69 64 65 64 20 | 69 6e 74 6f 20 64 69 73 |divided |into dis|
|00000140| 6a 6f 69 6e 74 20 70 69 | 65 63 65 73 0a 63 61 6c |joint pi|eces.cal|
|00000150| 6c 65 64 20 73 6f 72 74 | 20 72 65 63 6f 72 64 73 |led sort| records|
|00000160| 2e 20 20 41 20 70 6f 72 | 74 69 6f 6e 20 6f 66 20 |. A por|tion of |
|00000170| 65 61 63 68 20 73 6f 72 | 74 20 72 65 63 6f 72 64 |each sor|t record|
|00000180| 20 28 70 65 72 68 61 70 | 73 20 61 6c 6c 20 6f 66 | (perhap|s all of|
|00000190| 20 69 74 29 0a 69 73 20 | 64 65 73 69 67 6e 61 74 | it).is |designat|
|000001a0| 65 64 20 61 73 20 74 68 | 65 20 73 6f 72 74 20 6b |ed as th|e sort k|
|000001b0| 65 79 2e 20 20 54 68 65 | 20 72 65 63 6f 72 64 73 |ey. The| records|
|000001c0| 20 61 72 65 20 72 65 61 | 72 72 61 6e 67 65 64 20 | are rea|rranged |
|000001d0| 69 6e 20 74 68 65 20 62 | 75 66 66 65 72 0a 69 6e |in the b|uffer.in|
|000001e0| 20 6f 72 64 65 72 20 62 | 79 20 74 68 65 69 72 20 | order b|y their |
|000001f0| 73 6f 72 74 20 6b 65 79 | 73 2e 20 20 54 68 65 20 |sort key|s. The |
|00000200| 72 65 63 6f 72 64 73 20 | 6d 61 79 20 6f 72 20 6d |records |may or m|
|00000210| 61 79 20 6e 6f 74 20 62 | 65 20 63 6f 6e 74 69 67 |ay not b|e contig|
|00000220| 75 6f 75 73 2e 0a 0a 55 | 73 75 61 6c 6c 79 20 74 |uous...U|sually t|
|00000230| 68 65 20 72 65 63 6f 72 | 64 73 20 61 72 65 20 72 |he recor|ds are r|
|00000240| 65 61 72 72 61 6e 67 65 | 64 20 69 6e 20 6f 72 64 |earrange|d in ord|
|00000250| 65 72 20 6f 66 20 61 73 | 63 65 6e 64 69 6e 67 20 |er of as|cending |
|00000260| 73 6f 72 74 20 6b 65 79 | 2e 0a 49 66 20 52 45 56 |sort key|..If REV|
|00000270| 45 52 53 45 20 69 73 20 | 6e 6f 6e 2d 6e 69 6c 2c |ERSE is |non-nil,|
|00000280| 20 74 68 65 79 20 61 72 | 65 20 72 65 61 72 72 61 | they ar|e rearra|
|00000290| 6e 67 65 64 20 69 6e 20 | 6f 72 64 65 72 20 6f 66 |nged in |order of|
|000002a0| 20 64 65 73 63 65 6e 64 | 69 6e 67 20 73 6f 72 74 | descend|ing sort|
|000002b0| 20 6b 65 79 2e 0a 0a 54 | 68 65 20 6e 65 78 74 20 | key...T|he next |
|000002c0| 66 6f 75 72 20 61 72 67 | 75 6d 65 6e 74 73 20 61 |four arg|uments a|
|000002d0| 72 65 20 66 75 6e 63 74 | 69 6f 6e 73 20 74 6f 20 |re funct|ions to |
|000002e0| 62 65 20 63 61 6c 6c 65 | 64 20 74 6f 20 6d 6f 76 |be calle|d to mov|
|000002f0| 65 20 70 6f 69 6e 74 0a | 61 63 72 6f 73 73 20 61 |e point.|across a|
|00000300| 20 73 6f 72 74 20 72 65 | 63 6f 72 64 2e 20 20 54 | sort re|cord. T|
|00000310| 68 65 79 20 77 69 6c 6c | 20 62 65 20 63 61 6c 6c |hey will| be call|
|00000320| 65 64 20 6d 61 6e 79 20 | 74 69 6d 65 73 20 66 72 |ed many |times fr|
|00000330| 6f 6d 20 77 69 74 68 69 | 6e 20 73 6f 72 74 2d 73 |om withi|n sort-s|
|00000340| 75 62 72 2e 0a 0a 4e 45 | 58 54 52 45 43 46 55 4e |ubr...NE|XTRECFUN|
|00000350| 20 69 73 20 63 61 6c 6c | 65 64 20 77 69 74 68 20 | is call|ed with |
|00000360| 70 6f 69 6e 74 20 61 74 | 20 74 68 65 20 65 6e 64 |point at| the end|
|00000370| 20 6f 66 20 74 68 65 20 | 70 72 65 76 69 6f 75 73 | of the |previous|
|00000380| 20 72 65 63 6f 72 64 2e | 0a 49 74 20 6d 6f 76 65 | record.|.It move|
|00000390| 73 20 70 6f 69 6e 74 20 | 74 6f 20 74 68 65 20 73 |s point |to the s|
|000003a0| 74 61 72 74 20 6f 66 20 | 74 68 65 20 6e 65 78 74 |tart of |the next|
|000003b0| 20 72 65 63 6f 72 64 2e | 0a 54 68 65 20 66 69 72 | record.|.The fir|
|000003c0| 73 74 20 72 65 63 6f 72 | 64 20 69 73 20 61 73 73 |st recor|d is ass|
|000003d0| 75 6d 65 64 20 74 6f 20 | 73 74 61 72 74 20 61 74 |umed to |start at|
|000003e0| 20 74 68 65 20 70 6f 73 | 69 74 69 6f 6e 20 6f 66 | the pos|ition of|
|000003f0| 20 70 6f 69 6e 74 20 77 | 68 65 6e 20 73 6f 72 74 | point w|hen sort|
|00000400| 2d 73 75 62 72 0a 69 73 | 20 63 61 6c 6c 65 64 2e |-subr.is| called.|
|00000410| 0a 0a 45 4e 44 52 45 43 | 46 55 4e 20 69 73 20 69 |..ENDREC|FUN is i|
|00000420| 73 20 63 61 6c 6c 65 64 | 20 77 69 74 68 20 70 6f |s called| with po|
|00000430| 69 6e 74 20 77 69 74 68 | 69 6e 20 74 68 65 20 72 |int with|in the r|
|00000440| 65 63 6f 72 64 2e 0a 49 | 74 20 73 68 6f 75 6c 64 |ecord..I|t should|
|00000450| 20 6d 6f 76 65 20 70 6f | 69 6e 74 20 74 6f 20 74 | move po|int to t|
|00000460| 68 65 20 65 6e 64 20 6f | 66 20 74 68 65 20 72 65 |he end o|f the re|
|00000470| 63 6f 72 64 2e 0a 0a 53 | 54 41 52 54 4b 45 59 46 |cord...S|TARTKEYF|
|00000480| 55 4e 20 6d 61 79 20 6d | 6f 76 65 73 20 66 72 6f |UN may m|oves fro|
|00000490| 6d 20 74 68 65 20 73 74 | 61 72 74 20 6f 66 20 74 |m the st|art of t|
|000004a0| 68 65 20 72 65 63 6f 72 | 64 20 74 6f 20 74 68 65 |he recor|d to the|
|000004b0| 20 73 74 61 72 74 20 6f | 66 20 74 68 65 20 6b 65 | start o|f the ke|
|000004c0| 79 2e 0a 49 74 20 6d 61 | 79 20 72 65 74 75 72 6e |y..It ma|y return|
|000004d0| 20 65 69 74 68 65 72 20 | 72 65 74 75 72 6e 20 61 | either |return a|
|000004e0| 20 6e 6f 6e 2d 6e 69 6c | 20 76 61 6c 75 65 20 74 | non-nil| value t|
|000004f0| 6f 20 62 65 20 75 73 65 | 64 20 61 73 20 74 68 65 |o be use|d as the|
|00000500| 20 6b 65 79 2c 20 6f 72 | 0a 65 6c 73 65 20 74 68 | key, or|.else th|
|00000510| 65 20 6b 65 79 20 77 69 | 6c 6c 20 62 65 20 74 68 |e key wi|ll be th|
|00000520| 65 20 73 75 62 73 74 72 | 69 6e 67 20 62 65 74 77 |e substr|ing betw|
|00000530| 65 65 6e 20 74 68 65 20 | 76 61 6c 75 65 73 20 6f |een the |values o|
|00000540| 66 20 70 6f 69 6e 74 20 | 61 66 74 65 72 0a 53 54 |f point |after.ST|
|00000550| 41 52 54 4b 45 59 46 55 | 4e 20 61 6e 64 20 45 4e |ARTKEYFU|N and EN|
|00000560| 44 4b 45 59 46 55 4e 20 | 61 72 65 20 63 61 6c 6c |DKEYFUN |are call|
|00000570| 65 64 2e 20 20 49 66 20 | 53 54 41 52 54 4b 45 59 |ed. If |STARTKEY|
|00000580| 46 55 4e 20 69 73 20 6e | 69 6c 2c 20 74 68 65 20 |FUN is n|il, the |
|00000590| 6b 65 79 0a 73 74 61 72 | 74 73 20 61 74 20 74 68 |key.star|ts at th|
|000005a0| 65 20 62 65 67 69 6e 6e | 69 6e 67 20 6f 66 20 74 |e beginn|ing of t|
|000005b0| 68 65 20 72 65 63 6f 72 | 64 2e 0a 0a 45 4e 44 4b |he recor|d...ENDK|
|000005c0| 45 59 46 55 4e 20 6d 6f | 76 65 73 20 66 72 6f 6d |EYFUN mo|ves from|
|000005d0| 20 74 68 65 20 73 74 61 | 72 74 20 6f 66 20 74 68 | the sta|rt of th|
|000005e0| 65 20 73 6f 72 74 20 6b | 65 79 20 74 6f 20 74 68 |e sort k|ey to th|
|000005f0| 65 20 65 6e 64 20 6f 66 | 20 74 68 65 20 73 6f 72 |e end of| the sor|
|00000600| 74 20 6b 65 79 2e 0a 45 | 4e 44 52 45 43 46 55 4e |t key..E|NDRECFUN|
|00000610| 20 6d 61 79 20 62 65 20 | 6e 69 6c 20 69 66 20 53 | may be |nil if S|
|00000620| 54 41 52 54 4b 45 59 46 | 55 4e 20 72 65 74 75 72 |TARTKEYF|UN retur|
|00000630| 6e 73 20 61 20 76 61 6c | 75 65 20 6f 72 20 69 66 |ns a val|ue or if|
|00000640| 20 69 74 20 77 6f 75 6c | 64 20 62 65 20 74 68 65 | it woul|d be the|
|00000650| 0a 73 61 6d 65 20 61 73 | 20 45 4e 44 52 45 43 46 |.same as| ENDRECF|
|00000660| 55 4e 2e 22 20 28 62 79 | 74 65 2d 63 6f 64 65 20 |UN." (by|te-code |
|00000670| 22 8a c9 ca 21 88 cb 09 | 0a 0b 0c 24 18 c7 08 21 |"...!...|...$...!|
|00000680| 1d 08 3f 83 19 00 c6 82 | 7d 00 0e 07 86 23 00 cc |..?.....|}....#..|
|00000690| 08 21 89 10 88 c9 cd 21 | 88 ce cf 21 83 4c 00 cf |.!.....!|...!.L..|
|000006a0| 08 d0 08 40 40 21 83 3c | 00 d1 82 48 00 08 40 40 |...@@!.<|...H..@@|
|000006b0| 3a 83 47 00 d2 82 48 00 | d3 5c 22 82 67 00 d4 08 |:.G...H.|.\".g...|
|000006c0| d0 08 40 40 21 83 5a 00 | d5 82 66 00 08 40 40 3a |..@@!.Z.|..f..@@:|
|000006d0| 83 65 00 d6 82 66 00 d7 | 5c 22 89 10 88 0e 07 85 |.e...f..|\"......|
|000006e0| 74 00 cc 08 21 89 10 88 | c9 d8 21 88 d9 08 0d 5c |t...!...|..!....\|
|000006f0| 22 2a 88 c9 da 21 29 87 | 22 20 5b 73 6f 72 74 2d |"*...!).|" [sort-|
|00000700| 6c 69 73 74 73 20 6e 65 | 78 74 72 65 63 66 75 6e |lists ne|xtrecfun|
|00000710| 20 65 6e 64 72 65 63 66 | 75 6e 20 73 74 61 72 74 | endrecf|un start|
|00000720| 6b 65 79 66 75 6e 20 65 | 6e 64 6b 65 79 66 75 6e |keyfun e|ndkeyfun|
|00000730| 20 6f 6c 64 20 6e 69 6c | 20 72 65 76 65 72 73 65 | old nil| reverse|
|00000740| 20 74 20 6d 65 73 73 61 | 67 65 20 22 46 69 6e 64 | t messa|ge "Find|
|00000750| 69 6e 67 20 73 6f 72 74 | 20 6b 65 79 73 2e 2e 2e |ing sort| keys...|
|00000760| 22 20 73 6f 72 74 2d 62 | 75 69 6c 64 2d 6c 69 73 |" sort-b|uild-lis|
|00000770| 74 73 20 6e 72 65 76 65 | 72 73 65 20 22 53 6f 72 |ts nreve|rse "Sor|
|00000780| 74 69 6e 67 20 72 65 63 | 6f 72 64 73 2e 2e 2e 22 |ting rec|ords..."|
|00000790| 20 66 62 6f 75 6e 64 70 | 20 73 6f 72 74 63 61 72 | fboundp| sortcar|
|000007a0| 20 6e 75 6d 62 65 72 70 | 20 3c 20 62 75 66 66 65 | numberp| < buffe|
|000007b0| 72 2d 73 75 62 73 74 72 | 69 6e 67 2d 6c 65 73 73 |r-substr|ing-less|
|000007c0| 70 20 73 74 72 69 6e 67 | 2d 6c 65 73 73 70 2a 20 |p string|-lessp* |
|000007d0| 73 6f 72 74 20 28 6c 61 | 6d 62 64 61 20 28 61 20 |sort (la|mbda (a |
|000007e0| 62 29 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 08 |b) (byte|-code ".|
|000007f0| 40 09 40 57 87 22 20 5b | 61 20 62 5d 20 32 29 29 |@.@W." [|a b] 2))|
|00000800| 20 28 6c 61 6d 62 64 61 | 20 28 61 20 62 29 20 28 | (lambda| (a b) (|
|00000810| 62 79 74 65 2d 63 6f 64 | 65 20 22 c2 08 40 09 40 |byte-cod|e "..@.@|
|00000820| 5c 22 87 22 20 5b 61 20 | 62 20 62 75 66 66 65 72 |\"." [a |b buffer|
|00000830| 2d 73 75 62 73 74 72 69 | 6e 67 2d 6c 65 73 73 70 |-substri|ng-lessp|
|00000840| 5d 20 33 29 29 20 28 6c | 61 6d 62 64 61 20 28 61 |] 3)) (l|ambda (a|
|00000850| 20 62 29 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 | b) (byt|e-code "|
|00000860| c2 08 40 09 40 5c 22 87 | 22 20 5b 61 20 62 20 73 |..@.@\".|" [a b s|
|00000870| 74 72 69 6e 67 2d 6c 65 | 73 73 70 2a 5d 20 33 29 |tring-le|ssp*] 3)|
|00000880| 29 20 22 52 65 6f 72 64 | 65 72 69 6e 67 20 62 75 |) "Reord|ering bu|
|00000890| 66 66 65 72 2e 2e 2e 22 | 20 73 6f 72 74 2d 72 65 |ffer..."| sort-re|
|000008a0| 6f 72 64 65 72 2d 62 75 | 66 66 65 72 20 22 52 65 |order-bu|ffer "Re|
|000008b0| 6f 72 64 65 72 69 6e 67 | 20 62 75 66 66 65 72 2e |ordering| buffer.|
|000008c0| 2e 2e 20 44 6f 6e 65 22 | 5d 20 31 35 29 29 0a 0a |.. Done"|] 15))..|
|000008d0| 28 64 65 66 75 6e 20 73 | 6f 72 74 2d 62 75 69 6c |(defun s|ort-buil|
|000008e0| 64 2d 6c 69 73 74 73 20 | 28 6e 65 78 74 72 65 63 |d-lists |(nextrec|
|000008f0| 66 75 6e 20 65 6e 64 72 | 65 63 66 75 6e 20 73 74 |fun endr|ecfun st|
|00000900| 61 72 74 6b 65 79 66 75 | 6e 20 65 6e 64 6b 65 79 |artkeyfu|n endkey|
|00000910| 66 75 6e 29 20 28 62 79 | 74 65 2d 63 6f 64 65 20 |fun) (by|te-code |
|00000920| 22 c1 c1 c1 c1 1c 1b 1a | 18 6d 3f 85 75 00 60 89 |".......|.m?.u.`.|
|00000930| 12 88 c1 89 13 88 c4 c8 | 8d 89 14 88 0b c1 89 13 |........|........|
|00000940| 88 86 3a 00 0d 83 2d 00 | c9 0d 21 82 3a 00 0e 06 |..:...-.|..!.:...|
|00000950| 85 3a 00 c9 0e 06 21 88 | c7 89 13 88 0c 85 62 00 |.:....!.|......b.|
|00000960| 0c 3a 85 51 00 ca 0c 40 | 0a 5c 22 85 51 00 ca 0c |.:.Q...@|.\".Q...|
|00000970| 41 60 5c 22 83 5a 00 0c | 0c 42 82 5e 00 0c 0a 60 |A`\".Z..|.B.^...`|
|00000980| 45 08 42 89 10 88 0b 3f | 85 71 00 0e 06 85 71 00 |E.B....?|.q....q.|
|00000990| c9 0e 06 21 88 82 08 00 | 88 08 2c 87 22 20 5b 73 |...!....|..,." [s|
|000009a0| 6f 72 74 2d 6c 69 73 74 | 73 20 6e 69 6c 20 73 74 |ort-list|s nil st|
|000009b0| 61 72 74 2d 72 65 63 20 | 64 6f 6e 65 20 6b 65 79 |art-rec |done key|
|000009c0| 20 65 6e 64 72 65 63 66 | 75 6e 20 6e 65 78 74 72 | endrecf|un nextr|
|000009d0| 65 63 66 75 6e 20 74 20 | 28 62 79 74 65 2d 63 6f |ecfun t |(byte-co|
|000009e0| 64 65 20 22 08 85 07 00 | c6 08 21 86 29 00 60 19 |de "....|..!.).`.|
|000009f0| c6 0a 86 16 00 0b c5 89 | 14 88 21 88 c7 c8 21 83 |........|..!...!.|
|00000a00| 24 00 09 60 42 82 28 00 | c9 09 60 5c 22 29 87 22 |$..`B.(.|..`\")."|
|00000a10| 20 5b 73 74 61 72 74 6b | 65 79 66 75 6e 20 73 74 | [startk|eyfun st|
|00000a20| 61 72 74 20 65 6e 64 6b | 65 79 66 75 6e 20 65 6e |art endk|eyfun en|
|00000a30| 64 72 65 63 66 75 6e 20 | 64 6f 6e 65 20 74 20 66 |drecfun |done t f|
|00000a40| 75 6e 63 61 6c 6c 20 66 | 62 6f 75 6e 64 70 20 62 |uncall f|boundp b|
|00000a50| 75 66 66 65 72 2d 73 75 | 62 73 74 72 69 6e 67 2d |uffer-su|bstring-|
|00000a60| 6c 65 73 73 70 20 62 75 | 66 66 65 72 2d 73 75 62 |lessp bu|ffer-sub|
|00000a70| 73 74 72 69 6e 67 5d 20 | 36 29 20 66 75 6e 63 61 |string] |6) funca|
|00000a80| 6c 6c 20 65 71 75 61 6c | 5d 20 38 29 29 0a 0a 28 |ll equal|] 8))..(|
|00000a90| 64 65 66 75 6e 20 73 6f | 72 74 2d 72 65 6f 72 64 |defun so|rt-reord|
|00000aa0| 65 72 2d 62 75 66 66 65 | 72 20 28 73 6f 72 74 2d |er-buffe|r (sort-|
|00000ab0| 6c 69 73 74 73 20 6f 6c | 64 29 20 28 62 79 74 65 |lists ol|d) (byte|
|00000ac0| 2d 63 6f 64 65 20 22 c1 | 65 65 64 1c 1b 1a 18 0d |-code ".|eed.....|
|00000ad0| 85 3b 00 64 62 88 c7 70 | 0a c8 0e 06 40 38 23 88 |.;.db..p|....@8#.|
|00000ae0| 64 62 88 c7 70 c8 0d 40 | 38 c9 0d 40 38 23 88 c9 |db..p..@|8..@8#..|
|00000af0| 0e 06 40 38 12 0d 41 15 | 0e 06 41 89 16 06 88 82 |..@8..A.|..A.....|
|00000b00| 08 00 88 64 62 88 c7 70 | 0a 0c 23 88 ca 0b 0c 5c |...db..p|..#....\|
|00000b10| 22 2c 87 22 20 5b 69 6e | 68 69 62 69 74 2d 71 75 |",." [in|hibit-qu|
|00000b20| 69 74 20 74 20 6c 61 73 | 74 20 6d 69 6e 20 6d 61 |it t las|t min ma|
|00000b30| 78 20 73 6f 72 74 2d 6c | 69 73 74 73 20 6f 6c 64 |x sort-l|ists old|
|00000b40| 20 69 6e 73 65 72 74 2d | 62 75 66 66 65 72 2d 73 | insert-|buffer-s|
|00000b50| 75 62 73 74 72 69 6e 67 | 20 31 20 32 20 64 65 6c |ubstring| 1 2 del|
|00000b60| 65 74 65 2d 72 65 67 69 | 6f 6e 5d 20 37 29 29 0a |ete-regi|on] 7)).|
|00000b70| 0a 28 64 65 66 75 6e 20 | 73 6f 72 74 2d 6c 69 6e |.(defun |sort-lin|
|00000b80| 65 73 20 28 72 65 76 65 | 72 73 65 20 62 65 67 20 |es (reve|rse beg |
|00000b90| 65 6e 64 29 20 22 5c 0a | 53 6f 72 74 20 6c 69 6e |end) "\.|Sort lin|
|00000ba0| 65 73 20 69 6e 20 72 65 | 67 69 6f 6e 20 61 6c 70 |es in re|gion alp|
|00000bb0| 68 61 62 65 74 69 63 61 | 6c 6c 79 3b 20 61 72 67 |habetica|lly; arg|
|00000bc0| 75 6d 65 6e 74 20 6d 65 | 61 6e 73 20 64 65 73 63 |ument me|ans desc|
|00000bd0| 65 6e 64 69 6e 67 20 6f | 72 64 65 72 2e 0a 43 61 |ending o|rder..Ca|
|00000be0| 6c 6c 65 64 20 66 72 6f | 6d 20 61 20 70 72 6f 67 |lled fro|m a prog|
|00000bf0| 72 61 6d 2c 20 74 68 65 | 72 65 20 61 72 65 20 74 |ram, the|re are t|
|00000c00| 68 72 65 65 20 61 72 67 | 75 6d 65 6e 74 73 3a 0a |hree arg|uments:.|
|00000c10| 52 45 56 45 52 53 45 20 | 28 6e 6f 6e 2d 6e 69 6c |REVERSE |(non-nil|
|00000c20| 20 6d 65 61 6e 73 20 72 | 65 76 65 72 73 65 20 6f | means r|everse o|
|00000c30| 72 64 65 72 29 2c 20 42 | 45 47 20 61 6e 64 20 45 |rder), B|EG and E|
|00000c40| 4e 44 20 28 72 65 67 69 | 6f 6e 20 74 6f 20 73 6f |ND (regi|on to so|
|00000c50| 72 74 29 2e 22 20 28 69 | 6e 74 65 72 61 63 74 69 |rt)." (i|nteracti|
|00000c60| 76 65 20 22 50 0a 72 22 | 29 20 28 62 79 74 65 2d |ve "P.r"|) (byte-|
|00000c70| 63 6f 64 65 20 22 c3 88 | 8c c4 08 09 5c 22 88 65 |code "..|....\".e|
|00000c80| 62 88 c5 0a c6 c7 23 29 | 87 22 20 5b 62 65 67 20 |b.....#)|." [beg |
|00000c90| 65 6e 64 20 72 65 76 65 | 72 73 65 20 6e 69 6c 20 |end reve|rse nil |
|00000ca0| 6e 61 72 72 6f 77 2d 74 | 6f 2d 72 65 67 69 6f 6e |narrow-t|o-region|
|00000cb0| 20 73 6f 72 74 2d 73 75 | 62 72 20 66 6f 72 77 61 | sort-su|br forwa|
|00000cc0| 72 64 2d 6c 69 6e 65 20 | 65 6e 64 2d 6f 66 2d 6c |rd-line |end-of-l|
|00000cd0| 69 6e 65 5d 20 35 29 29 | 0a 0a 28 64 65 66 75 6e |ine] 5))|..(defun|
|00000ce0| 20 73 6f 72 74 2d 70 61 | 72 61 67 72 61 70 68 73 | sort-pa|ragraphs|
|00000cf0| 20 28 72 65 76 65 72 73 | 65 20 62 65 67 20 65 6e | (revers|e beg en|
|00000d00| 64 29 20 22 5c 0a 53 6f | 72 74 20 70 61 72 61 67 |d) "\.So|rt parag|
|00000d10| 72 61 70 68 73 20 69 6e | 20 72 65 67 69 6f 6e 20 |raphs in| region |
|00000d20| 61 6c 70 68 61 62 65 74 | 69 63 61 6c 6c 79 3b 20 |alphabet|ically; |
|00000d30| 61 72 67 75 6d 65 6e 74 | 20 6d 65 61 6e 73 20 64 |argument| means d|
|00000d40| 65 73 63 65 6e 64 69 6e | 67 20 6f 72 64 65 72 2e |escendin|g order.|
|00000d50| 0a 43 61 6c 6c 65 64 20 | 66 72 6f 6d 20 61 20 70 |.Called |from a p|
|00000d60| 72 6f 67 72 61 6d 2c 20 | 74 68 65 72 65 20 61 72 |rogram, |there ar|
|00000d70| 65 20 74 68 72 65 65 20 | 61 72 67 75 6d 65 6e 74 |e three |argument|
|00000d80| 73 3a 0a 52 45 56 45 52 | 53 45 20 28 6e 6f 6e 2d |s:.REVER|SE (non-|
|00000d90| 6e 69 6c 20 6d 65 61 6e | 73 20 72 65 76 65 72 73 |nil mean|s revers|
|00000da0| 65 20 6f 72 64 65 72 29 | 2c 20 42 45 47 20 61 6e |e order)|, BEG an|
|00000db0| 64 20 45 4e 44 20 28 72 | 65 67 69 6f 6e 20 74 6f |d END (r|egion to|
|00000dc0| 20 73 6f 72 74 29 2e 22 | 20 28 69 6e 74 65 72 61 | sort)."| (intera|
|00000dd0| 63 74 69 76 65 20 22 50 | 0a 72 22 29 20 28 62 79 |ctive "P|.r") (by|
|00000de0| 74 65 2d 63 6f 64 65 20 | 22 c3 88 8c c4 08 09 5c |te-code |"......\|
|00000df0| 22 88 65 62 88 c5 0a c6 | c7 23 29 87 22 20 5b 62 |".eb....|.#)." [b|
|00000e00| 65 67 20 65 6e 64 20 72 | 65 76 65 72 73 65 20 6e |eg end r|everse n|
|00000e10| 69 6c 20 6e 61 72 72 6f | 77 2d 74 6f 2d 72 65 67 |il narro|w-to-reg|
|00000e20| 69 6f 6e 20 73 6f 72 74 | 2d 73 75 62 72 20 28 6c |ion sort|-subr (l|
|00000e30| 61 6d 62 64 61 20 6e 69 | 6c 20 28 62 79 74 65 2d |ambda ni|l (byte-|
|00000e40| 63 6f 64 65 20 22 c0 c1 | 21 87 22 20 5b 73 6b 69 |code "..|!." [ski|
|00000e50| 70 2d 63 68 61 72 73 2d | 66 6f 72 77 61 72 64 20 |p-chars-|forward |
|00000e60| 22 0a 20 09 0c 22 5d 20 | 32 29 29 20 66 6f 72 77 |". .."] |2)) forw|
|00000e70| 61 72 64 2d 70 61 72 61 | 67 72 61 70 68 5d 20 35 |ard-para|graph] 5|
|00000e80| 29 29 0a 0a 28 64 65 66 | 75 6e 20 73 6f 72 74 2d |))..(def|un sort-|
|00000e90| 70 61 67 65 73 20 28 72 | 65 76 65 72 73 65 20 62 |pages (r|everse b|
|00000ea0| 65 67 20 65 6e 64 29 20 | 22 5c 0a 53 6f 72 74 20 |eg end) |"\.Sort |
|00000eb0| 70 61 67 65 73 20 69 6e | 20 72 65 67 69 6f 6e 20 |pages in| region |
|00000ec0| 61 6c 70 68 61 62 65 74 | 69 63 61 6c 6c 79 3b 20 |alphabet|ically; |
|00000ed0| 61 72 67 75 6d 65 6e 74 | 20 6d 65 61 6e 73 20 64 |argument| means d|
|00000ee0| 65 73 63 65 6e 64 69 6e | 67 20 6f 72 64 65 72 2e |escendin|g order.|
|00000ef0| 0a 43 61 6c 6c 65 64 20 | 66 72 6f 6d 20 61 20 70 |.Called |from a p|
|00000f00| 72 6f 67 72 61 6d 2c 20 | 74 68 65 72 65 20 61 72 |rogram, |there ar|
|00000f10| 65 20 74 68 72 65 65 20 | 61 72 67 75 6d 65 6e 74 |e three |argument|
|00000f20| 73 3a 0a 52 45 56 45 52 | 53 45 20 28 6e 6f 6e 2d |s:.REVER|SE (non-|
|00000f30| 6e 69 6c 20 6d 65 61 6e | 73 20 72 65 76 65 72 73 |nil mean|s revers|
|00000f40| 65 20 6f 72 64 65 72 29 | 2c 20 42 45 47 20 61 6e |e order)|, BEG an|
|00000f50| 64 20 45 4e 44 20 28 72 | 65 67 69 6f 6e 20 74 6f |d END (r|egion to|
|00000f60| 20 73 6f 72 74 29 2e 22 | 20 28 69 6e 74 65 72 61 | sort)."| (intera|
|00000f70| 63 74 69 76 65 20 22 50 | 0a 72 22 29 20 28 62 79 |ctive "P|.r") (by|
|00000f80| 74 65 2d 63 6f 64 65 20 | 22 c3 88 8c c4 08 09 5c |te-code |"......\|
|00000f90| 22 88 65 62 88 c5 0a c6 | c7 23 29 87 22 20 5b 62 |".eb....|.#)." [b|
|00000fa0| 65 67 20 65 6e 64 20 72 | 65 76 65 72 73 65 20 6e |eg end r|everse n|
|00000fb0| 69 6c 20 6e 61 72 72 6f | 77 2d 74 6f 2d 72 65 67 |il narro|w-to-reg|
|00000fc0| 69 6f 6e 20 73 6f 72 74 | 2d 73 75 62 72 20 28 6c |ion sort|-subr (l|
|00000fd0| 61 6d 62 64 61 20 6e 69 | 6c 20 28 62 79 74 65 2d |ambda ni|l (byte-|
|00000fe0| 63 6f 64 65 20 22 c0 c1 | 21 87 22 20 5b 73 6b 69 |code "..|!." [ski|
|00000ff0| 70 2d 63 68 61 72 73 2d | 66 6f 72 77 61 72 64 20 |p-chars-|forward |
|00001000| 22 0a 22 5d 20 32 29 29 | 20 66 6f 72 77 61 72 64 |"."] 2))| forward|
|00001010| 2d 70 61 67 65 5d 20 35 | 29 29 0a 0a 28 64 65 66 |-page] 5|))..(def|
|00001020| 76 61 72 20 73 6f 72 74 | 2d 66 69 65 6c 64 73 2d |var sort|-fields-|
|00001030| 73 79 6e 74 61 78 2d 74 | 61 62 6c 65 20 6e 69 6c |syntax-t|able nil|
|00001040| 29 0a 0a 28 69 66 20 73 | 6f 72 74 2d 66 69 65 6c |)..(if s|ort-fiel|
|00001050| 64 73 2d 73 79 6e 74 61 | 78 2d 74 61 62 6c 65 20 |ds-synta|x-table |
|00001060| 6e 69 6c 20 28 6c 65 74 | 20 28 28 74 61 62 6c 65 |nil (let| ((table|
|00001070| 20 28 6d 61 6b 65 2d 73 | 79 6e 74 61 78 2d 74 61 | (make-s|yntax-ta|
|00001080| 62 6c 65 29 29 20 28 69 | 20 30 29 29 20 28 77 68 |ble)) (i| 0)) (wh|
|00001090| 69 6c 65 20 28 3c 20 69 | 20 32 35 36 29 20 28 6d |ile (< i| 256) (m|
|000010a0| 6f 64 69 66 79 2d 73 79 | 6e 74 61 78 2d 65 6e 74 |odify-sy|ntax-ent|
|000010b0| 72 79 20 69 20 22 77 22 | 20 74 61 62 6c 65 29 20 |ry i "w"| table) |
|000010c0| 28 73 65 74 71 20 69 20 | 28 31 2b 20 69 29 29 29 |(setq i |(1+ i)))|
|000010d0| 20 28 6d 6f 64 69 66 79 | 2d 73 79 6e 74 61 78 2d | (modify|-syntax-|
|000010e0| 65 6e 74 72 79 20 33 32 | 20 22 20 22 20 74 61 62 |entry 32| " " tab|
|000010f0| 6c 65 29 20 28 6d 6f 64 | 69 66 79 2d 73 79 6e 74 |le) (mod|ify-synt|
|00001100| 61 78 2d 65 6e 74 72 79 | 20 39 20 22 20 22 20 74 |ax-entry| 9 " " t|
|00001110| 61 62 6c 65 29 20 28 6d | 6f 64 69 66 79 2d 73 79 |able) (m|odify-sy|
|00001120| 6e 74 61 78 2d 65 6e 74 | 72 79 20 31 30 20 22 20 |ntax-ent|ry 10 " |
|00001130| 22 20 74 61 62 6c 65 29 | 20 28 73 65 74 71 20 73 |" table)| (setq s|
|00001140| 6f 72 74 2d 66 69 65 6c | 64 73 2d 73 79 6e 74 61 |ort-fiel|ds-synta|
|00001150| 78 2d 74 61 62 6c 65 20 | 74 61 62 6c 65 29 29 29 |x-table |table)))|
|00001160| 0a 0a 28 64 65 66 75 6e | 20 73 6f 72 74 2d 6e 75 |..(defun| sort-nu|
|00001170| 6d 65 72 69 63 2d 66 69 | 65 6c 64 73 20 28 66 69 |meric-fi|elds (fi|
|00001180| 65 6c 64 20 62 65 67 20 | 65 6e 64 29 20 22 5c 0a |eld beg |end) "\.|
|00001190| 53 6f 72 74 20 6c 69 6e | 65 73 20 69 6e 20 72 65 |Sort lin|es in re|
|000011a0| 67 69 6f 6e 20 6e 75 6d | 65 72 69 63 61 6c 6c 79 |gion num|erically|
|000011b0| 20 62 79 20 74 68 65 20 | 41 52 47 74 68 20 66 69 | by the |ARGth fi|
|000011c0| 65 6c 64 20 6f 66 20 65 | 61 63 68 20 6c 69 6e 65 |eld of e|ach line|
|000011d0| 2e 0a 46 69 65 6c 64 73 | 20 61 72 65 20 73 65 70 |..Fields| are sep|
|000011e0| 61 72 61 74 65 64 20 62 | 79 20 77 68 69 74 65 73 |arated b|y whites|
|000011f0| 70 61 63 65 20 61 6e 64 | 20 6e 75 6d 62 65 72 65 |pace and| numbere|
|00001200| 64 20 66 72 6f 6d 20 31 | 20 75 70 2e 0a 53 70 65 |d from 1| up..Spe|
|00001210| 63 69 66 69 65 64 20 66 | 69 65 6c 64 20 6d 75 73 |cified f|ield mus|
|00001220| 74 20 63 6f 6e 74 61 69 | 6e 20 61 20 6e 75 6d 62 |t contai|n a numb|
|00001230| 65 72 20 69 6e 20 65 61 | 63 68 20 6c 69 6e 65 20 |er in ea|ch line |
|00001240| 6f 66 20 74 68 65 20 72 | 65 67 69 6f 6e 2e 0a 57 |of the r|egion..W|
|00001250| 69 74 68 20 61 20 6e 65 | 67 61 74 69 76 65 20 61 |ith a ne|gative a|
|00001260| 72 67 2c 20 73 6f 72 74 | 73 20 62 79 20 74 68 65 |rg, sort|s by the|
|00001270| 20 2d 41 52 47 27 74 68 | 20 66 69 65 6c 64 2c 20 | -ARG'th| field, |
|00001280| 69 6e 20 72 65 76 65 72 | 73 65 20 6f 72 64 65 72 |in rever|se order|
|00001290| 2e 0a 43 61 6c 6c 65 64 | 20 66 72 6f 6d 20 61 20 |..Called| from a |
|000012a0| 70 72 6f 67 72 61 6d 2c | 20 74 68 65 72 65 20 61 |program,| there a|
|000012b0| 72 65 20 74 68 72 65 65 | 20 61 72 67 75 6d 65 6e |re three| argumen|
|000012c0| 74 73 3a 0a 46 49 45 4c | 44 2c 20 42 45 47 20 61 |ts:.FIEL|D, BEG a|
|000012d0| 6e 64 20 45 4e 44 2e 20 | 20 42 45 47 20 61 6e 64 |nd END. | BEG and|
|000012e0| 20 45 4e 44 20 73 70 65 | 63 69 66 79 20 72 65 67 | END spe|cify reg|
|000012f0| 69 6f 6e 20 74 6f 20 73 | 6f 72 74 2e 22 20 28 69 |ion to s|ort." (i|
|00001300| 6e 74 65 72 61 63 74 69 | 76 65 20 22 70 0a 72 22 |nteracti|ve "p.r"|
|00001310| 29 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c3 88 |) (byte-|code "..|
|00001320| c4 08 09 0a c5 c3 25 87 | 22 20 5b 66 69 65 6c 64 |......%.|" [field|
|00001330| 20 62 65 67 20 65 6e 64 | 20 6e 69 6c 20 73 6f 72 | beg end| nil sor|
|00001340| 74 2d 66 69 65 6c 64 73 | 2d 31 20 28 6c 61 6d 62 |t-fields|-1 (lamb|
|00001350| 64 61 20 6e 69 6c 20 28 | 62 79 74 65 2d 63 6f 64 |da nil (|byte-cod|
|00001360| 65 20 22 c1 08 53 21 88 | c2 c3 60 8a c4 c5 21 88 |e "..S!.|..`...!.|
|00001370| 60 29 5c 22 21 87 22 20 | 5b 66 69 65 6c 64 20 73 |`)\"!." |[field s|
|00001380| 6f 72 74 2d 73 6b 69 70 | 2d 66 69 65 6c 64 73 20 |ort-skip|-fields |
|00001390| 73 74 72 69 6e 67 2d 74 | 6f 2d 69 6e 74 20 62 75 |string-t|o-int bu|
|000013a0| 66 66 65 72 2d 73 75 62 | 73 74 72 69 6e 67 20 73 |ffer-sub|string s|
|000013b0| 6b 69 70 2d 63 68 61 72 | 73 2d 66 6f 72 77 61 72 |kip-char|s-forwar|
|000013c0| 64 20 22 2d 30 2d 39 22 | 5d 20 36 29 29 5d 20 36 |d "-0-9"|] 6))] 6|
|000013d0| 29 29 0a 0a 28 64 65 66 | 75 6e 20 73 6f 72 74 2d |))..(def|un sort-|
|000013e0| 66 69 65 6c 64 73 20 28 | 66 69 65 6c 64 20 62 65 |fields (|field be|
|000013f0| 67 20 65 6e 64 29 20 22 | 5c 0a 53 6f 72 74 20 6c |g end) "|\.Sort l|
|00001400| 69 6e 65 73 20 69 6e 20 | 72 65 67 69 6f 6e 20 6c |ines in |region l|
|00001410| 65 78 69 63 6f 67 72 61 | 70 68 69 63 61 6c 6c 79 |exicogra|phically|
|00001420| 20 62 79 20 74 68 65 20 | 41 52 47 74 68 20 66 69 | by the |ARGth fi|
|00001430| 65 6c 64 20 6f 66 20 65 | 61 63 68 20 6c 69 6e 65 |eld of e|ach line|
|00001440| 2e 0a 46 69 65 6c 64 73 | 20 61 72 65 20 73 65 70 |..Fields| are sep|
|00001450| 61 72 61 74 65 64 20 62 | 79 20 77 68 69 74 65 73 |arated b|y whites|
|00001460| 70 61 63 65 20 61 6e 64 | 20 6e 75 6d 62 65 72 65 |pace and| numbere|
|00001470| 64 20 66 72 6f 6d 20 31 | 20 75 70 2e 0a 57 69 74 |d from 1| up..Wit|
|00001480| 68 20 61 20 6e 65 67 61 | 74 69 76 65 20 61 72 67 |h a nega|tive arg|
|00001490| 2c 20 73 6f 72 74 73 20 | 62 79 20 74 68 65 20 2d |, sorts |by the -|
|000014a0| 41 52 47 27 74 68 20 66 | 69 65 6c 64 2c 20 69 6e |ARG'th f|ield, in|
|000014b0| 20 72 65 76 65 72 73 65 | 20 6f 72 64 65 72 2e 0a | reverse| order..|
|000014c0| 43 61 6c 6c 65 64 20 66 | 72 6f 6d 20 61 20 70 72 |Called f|rom a pr|
|000014d0| 6f 67 72 61 6d 2c 20 74 | 68 65 72 65 20 61 72 65 |ogram, t|here are|
|000014e0| 20 74 68 72 65 65 20 61 | 72 67 75 6d 65 6e 74 73 | three a|rguments|
|000014f0| 3a 0a 46 49 45 4c 44 2c | 20 42 45 47 20 61 6e 64 |:.FIELD,| BEG and|
|00001500| 20 45 4e 44 2e 20 20 42 | 45 47 20 61 6e 64 20 45 | END. B|EG and E|
|00001510| 4e 44 20 73 70 65 63 69 | 66 79 20 72 65 67 69 6f |ND speci|fy regio|
|00001520| 6e 20 74 6f 20 73 6f 72 | 74 2e 22 20 28 69 6e 74 |n to sor|t." (int|
|00001530| 65 72 61 63 74 69 76 65 | 20 22 70 0a 72 22 29 20 |eractive| "p.r") |
|00001540| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c3 88 c4 08 |(byte-co|de "....|
|00001550| 09 0a c5 c6 25 87 22 20 | 5b 66 69 65 6c 64 20 62 |....%." |[field b|
|00001560| 65 67 20 65 6e 64 20 6e | 69 6c 20 73 6f 72 74 2d |eg end n|il sort-|
|00001570| 66 69 65 6c 64 73 2d 31 | 20 28 6c 61 6d 62 64 61 |fields-1| (lambda|
|00001580| 20 6e 69 6c 20 28 62 79 | 74 65 2d 63 6f 64 65 20 | nil (by|te-code |
|00001590| 22 c2 08 53 21 88 c1 87 | 22 20 5b 66 69 65 6c 64 |"..S!...|" [field|
|000015a0| 20 6e 69 6c 20 73 6f 72 | 74 2d 73 6b 69 70 2d 66 | nil sor|t-skip-f|
|000015b0| 69 65 6c 64 73 5d 20 32 | 29 29 20 28 6c 61 6d 62 |ields] 2|)) (lamb|
|000015c0| 64 61 20 6e 69 6c 20 28 | 62 79 74 65 2d 63 6f 64 |da nil (|byte-cod|
|000015d0| 65 20 22 c0 c1 21 87 22 | 20 5b 73 6b 69 70 2d 63 |e "..!."| [skip-c|
|000015e0| 68 61 72 73 2d 66 6f 72 | 77 61 72 64 20 22 5e 20 |hars-for|ward "^ |
|000015f0| 09 0a 22 5d 20 32 29 29 | 5d 20 36 29 29 0a 0a 28 |.."] 2))|] 6))..(|
|00001600| 64 65 66 75 6e 20 73 6f | 72 74 2d 66 69 65 6c 64 |defun so|rt-field|
|00001610| 73 2d 31 20 28 66 69 65 | 6c 64 20 62 65 67 20 65 |s-1 (fie|ld beg e|
|00001620| 6e 64 20 73 74 61 72 74 | 6b 65 79 66 75 6e 20 65 |nd start|keyfun e|
|00001630| 6e 64 6b 65 79 66 75 6e | 29 20 28 62 79 74 65 2d |ndkeyfun|) (byte-|
|00001640| 63 6f 64 65 20 22 09 c8 | 57 c9 20 1a 18 ca cb 09 |code "..|W. .....|
|00001650| 09 5b 23 89 11 88 cc 8e | 8c cd 0b 0c 5c 22 88 65 |.[#.....|....\".e|
|00001660| 62 88 ce 0d 21 88 cf 08 | d0 d1 0e 06 0e 07 25 29 |b...!...|......%)|
|00001670| 29 2a 87 22 20 5b 72 65 | 76 65 72 73 65 20 66 69 |)*." [re|verse fi|
|00001680| 65 6c 64 20 74 62 6c 20 | 62 65 67 20 65 6e 64 20 |eld tbl |beg end |
|00001690| 73 6f 72 74 2d 66 69 65 | 6c 64 73 2d 73 79 6e 74 |sort-fie|lds-synt|
|000016a0| 61 78 2d 74 61 62 6c 65 | 20 73 74 61 72 74 6b 65 |ax-table| startke|
|000016b0| 79 66 75 6e 20 65 6e 64 | 6b 65 79 66 75 6e 20 30 |yfun end|keyfun 0|
|000016c0| 20 73 79 6e 74 61 78 2d | 74 61 62 6c 65 20 6d 61 | syntax-|table ma|
|000016d0| 78 20 31 20 28 28 62 79 | 74 65 2d 63 6f 64 65 20 |x 1 ((by|te-code |
|000016e0| 22 c1 08 21 87 22 20 5b | 74 62 6c 20 73 65 74 2d |"..!." [|tbl set-|
|000016f0| 73 79 6e 74 61 78 2d 74 | 61 62 6c 65 5d 20 32 29 |syntax-t|able] 2)|
|00001700| 29 20 6e 61 72 72 6f 77 | 2d 74 6f 2d 72 65 67 69 |) narrow|-to-regi|
|00001710| 6f 6e 20 73 65 74 2d 73 | 79 6e 74 61 78 2d 74 61 |on set-s|yntax-ta|
|00001720| 62 6c 65 20 73 6f 72 74 | 2d 73 75 62 72 20 66 6f |ble sort|-subr fo|
|00001730| 72 77 61 72 64 2d 6c 69 | 6e 65 20 65 6e 64 2d 6f |rward-li|ne end-o|
|00001740| 66 2d 6c 69 6e 65 5d 20 | 31 30 29 29 0a 0a 28 64 |f-line] |10))..(d|
|00001750| 65 66 75 6e 20 73 6f 72 | 74 2d 73 6b 69 70 2d 66 |efun sor|t-skip-f|
|00001760| 69 65 6c 64 73 20 28 6e | 29 20 28 62 79 74 65 2d |ields (n|) (byte-|
|00001770| 63 6f 64 65 20 22 8a c2 | c3 21 88 60 29 18 c4 09 |code "..|.!.`)...|
|00001780| 21 88 60 08 56 85 1e 00 | c5 c6 c7 8a c8 20 88 60 |!.`.V...|..... .`|
|00001790| 29 08 5c 22 5c 22 88 c9 | ca 21 29 87 22 20 5b 65 |).\"\"..|.!)." [e|
|000017a0| 6f 6c 20 6e 20 65 6e 64 | 2d 6f 66 2d 6c 69 6e 65 |ol n end|-of-line|
|000017b0| 20 31 20 66 6f 72 77 61 | 72 64 2d 77 6f 72 64 20 | 1 forwa|rd-word |
|000017c0| 65 72 72 6f 72 20 22 4c | 69 6e 65 20 68 61 73 20 |error "L|ine has |
|000017d0| 74 6f 6f 20 66 65 77 20 | 66 69 65 6c 64 73 3a 20 |too few |fields: |
|000017e0| 25 73 22 20 62 75 66 66 | 65 72 2d 73 75 62 73 74 |%s" buff|er-subst|
|000017f0| 72 69 6e 67 20 62 65 67 | 69 6e 6e 69 6e 67 2d 6f |ring beg|inning-o|
|00001800| 66 2d 6c 69 6e 65 20 73 | 6b 69 70 2d 63 68 61 72 |f-line s|kip-char|
|00001810| 73 2d 66 6f 72 77 61 72 | 64 20 22 20 09 22 5d 20 |s-forwar|d " ."] |
|00001820| 38 29 29 0a 0a 28 64 65 | 66 75 6e 20 73 6f 72 74 |8))..(de|fun sort|
|00001830| 2d 72 65 67 65 78 70 2d | 66 69 65 6c 64 73 20 28 |-regexp-|fields (|
|00001840| 72 65 76 65 72 73 65 20 | 72 65 63 6f 72 64 2d 72 |reverse |record-r|
|00001850| 65 67 65 78 70 20 6b 65 | 79 2d 72 65 67 65 78 70 |egexp ke|y-regexp|
|00001860| 20 62 65 67 20 65 6e 64 | 29 20 22 5c 0a 53 6f 72 | beg end|) "\.Sor|
|00001870| 74 20 74 68 65 20 72 65 | 67 69 6f 6e 20 6c 65 78 |t the re|gion lex|
|00001880| 69 63 6f 67 72 61 70 68 | 69 63 61 6c 6c 79 20 61 |icograph|ically a|
|00001890| 73 20 73 70 65 63 69 66 | 65 64 20 62 79 20 52 45 |s specif|ed by RE|
|000018a0| 43 4f 52 44 2d 52 45 47 | 45 58 50 20 61 6e 64 20 |CORD-REG|EXP and |
|000018b0| 4b 45 59 2e 0a 52 45 43 | 4f 52 44 2d 52 45 47 45 |KEY..REC|ORD-REGE|
|000018c0| 58 50 20 73 70 65 63 69 | 66 69 65 73 20 74 68 65 |XP speci|fies the|
|000018d0| 20 74 65 78 74 75 61 6c | 20 75 6e 69 74 73 20 77 | textual| units w|
|000018e0| 68 69 63 68 20 73 68 6f | 75 6c 64 20 62 65 20 73 |hich sho|uld be s|
|000018f0| 6f 72 74 65 64 2e 0a 20 | 20 46 6f 72 20 65 78 61 |orted.. | For exa|
|00001900| 6d 70 6c 65 2c 20 74 6f | 20 73 6f 72 74 20 6c 69 |mple, to| sort li|
|00001910| 6e 65 73 20 52 45 43 4f | 52 44 2d 52 45 47 45 58 |nes RECO|RD-REGEX|
|00001920| 50 20 77 6f 75 6c 64 20 | 62 65 20 5c 22 5e 2e 2a |P would |be \"^.*|
|00001930| 24 5c 22 0a 4b 45 59 20 | 73 70 65 63 69 66 69 65 |$\".KEY |specifie|
|00001940| 73 20 74 68 65 20 70 61 | 72 74 20 6f 66 20 65 61 |s the pa|rt of ea|
|00001950| 63 68 20 72 65 63 6f 72 | 64 20 28 69 65 20 65 61 |ch recor|d (ie ea|
|00001960| 63 68 20 6d 61 74 63 68 | 20 66 6f 72 20 52 45 43 |ch match| for REC|
|00001970| 4f 52 44 2d 52 45 47 45 | 58 50 29 0a 20 20 69 73 |ORD-REGE|XP). is|
|00001980| 20 74 6f 20 62 65 20 75 | 73 65 64 20 66 6f 72 20 | to be u|sed for |
|00001990| 73 6f 72 74 69 6e 67 2e | 0a 20 20 49 66 20 69 74 |sorting.|. If it|
|000019a0| 20 69 73 20 5c 22 5c 5c | 64 69 67 69 74 5c 22 20 | is \"\\|digit\" |
|000019b0| 74 68 65 6e 20 74 68 65 | 20 64 69 67 69 74 27 74 |then the| digit't|
|000019c0| 68 20 5c 22 5c 5c 28 2e | 2e 2e 5c 5c 29 5c 22 20 |h \"\\(.|..\\)\" |
|000019d0| 6d 61 74 63 68 20 66 69 | 65 6c 64 20 66 72 6f 6d |match fi|eld from|
|000019e0| 0a 20 20 52 45 43 4f 52 | 44 2d 52 45 47 45 58 50 |. RECOR|D-REGEXP|
|000019f0| 20 69 73 20 75 73 65 64 | 2e 0a 20 20 49 66 20 69 | is used|.. If i|
|00001a00| 74 20 69 73 20 5c 22 5c | 5c 26 5c 22 20 74 68 65 |t is \"\|\&\" the|
|00001a10| 6e 20 74 68 65 20 77 68 | 6f 6c 65 20 72 65 63 6f |n the wh|ole reco|
|00001a20| 72 64 20 69 73 20 75 73 | 65 64 2e 0a 20 20 4f 74 |rd is us|ed.. Ot|
|00001a30| 68 65 72 77 69 73 65 2c | 20 69 74 20 69 73 20 61 |herwise,| it is a|
|00001a40| 20 72 65 67 75 6c 61 72 | 2d 65 78 70 72 65 73 73 | regular|-express|
|00001a50| 69 6f 6e 20 66 6f 72 20 | 77 68 69 63 68 20 74 6f |ion for |which to|
|00001a60| 20 73 65 61 72 63 68 20 | 77 69 74 68 69 6e 20 74 | search |within t|
|00001a70| 68 65 20 72 65 63 6f 72 | 64 2e 0a 49 66 20 61 20 |he recor|d..If a |
|00001a80| 6d 61 74 63 68 20 66 6f | 72 20 4b 45 59 20 69 73 |match fo|r KEY is|
|00001a90| 20 6e 6f 74 20 66 6f 75 | 6e 64 20 77 69 74 68 69 | not fou|nd withi|
|00001aa0| 6e 20 61 20 72 65 63 6f | 72 64 20 74 68 65 6e 20 |n a reco|rd then |
|00001ab0| 74 68 61 74 20 72 65 63 | 6f 72 64 20 69 73 20 69 |that rec|ord is i|
|00001ac0| 67 6e 6f 72 65 64 2e 0a | 0a 57 69 74 68 20 61 20 |gnored..|.With a |
|00001ad0| 6e 65 67 61 74 69 76 65 | 20 70 72 65 66 69 78 20 |negative| prefix |
|00001ae0| 61 72 67 20 73 6f 72 74 | 73 20 69 6e 20 72 65 76 |arg sort|s in rev|
|00001af0| 65 72 73 65 20 6f 72 64 | 65 72 2e 0a 0a 46 6f 72 |erse ord|er...For|
|00001b00| 20 65 78 61 6d 70 6c 65 | 3a 20 74 6f 20 73 6f 72 | example|: to sor|
|00001b10| 74 20 6c 69 6e 65 73 20 | 69 6e 20 74 68 65 20 72 |t lines |in the r|
|00001b20| 65 67 69 6f 6e 20 62 79 | 20 74 68 65 20 66 69 72 |egion by| the fir|
|00001b30| 73 74 20 77 6f 72 64 20 | 6f 6e 20 65 61 63 68 20 |st word |on each |
|00001b40| 6c 69 6e 65 0a 20 73 74 | 61 72 74 69 6e 67 20 77 |line. st|arting w|
|00001b50| 69 74 68 20 74 68 65 20 | 6c 65 74 74 65 72 20 5c |ith the |letter \|
|00001b60| 22 66 5c 22 2c 0a 20 52 | 45 43 4f 52 44 2d 52 45 |"f\",. R|ECORD-RE|
|00001b70| 47 45 58 50 20 77 6f 75 | 6c 64 20 62 65 20 5c 22 |GEXP wou|ld be \"|
|00001b80| 5e 2e 2a 24 5c 22 20 61 | 6e 64 20 4b 45 59 20 5c |^.*$\" a|nd KEY \|
|00001b90| 22 5c 5c 3c 66 5c 5c 77 | 2a 5c 5c 3e 5c 22 22 20 |"\\<f\\w|*\\>\"" |
|00001ba0| 28 69 6e 74 65 72 61 63 | 74 69 76 65 20 22 50 0a |(interac|tive "P.|
|00001bb0| 73 52 65 67 65 78 70 20 | 73 70 65 63 69 66 79 69 |sRegexp |specifyi|
|00001bc0| 6e 67 20 72 65 63 6f 72 | 64 73 20 74 6f 20 73 6f |ng recor|ds to so|
|00001bd0| 72 74 3a 20 0a 73 52 65 | 67 65 78 70 20 73 70 65 |rt: .sRe|gexp spe|
|00001be0| 63 69 66 79 69 6e 67 20 | 6b 65 79 20 77 69 74 68 |cifying |key with|
|00001bf0| 69 6e 20 72 65 63 6f 72 | 64 3a 20 0a 72 22 29 20 |in recor|d: .r") |
|00001c00| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c6 88 c7 08 |(byte-co|de "....|
|00001c10| c8 5c 22 86 0d 00 c7 08 | c9 5c 22 83 16 00 ca 89 |.\".....|.\".....|
|00001c20| 10 82 24 00 cb cc 08 5c | 22 85 24 00 08 cd 48 ce |..$....\|".$...H.|
|00001c30| 5a 89 10 88 8c cf 09 0a | 5c 22 88 65 62 88 c6 1b |Z.......|\".eb...|
|00001c40| d0 0c 21 88 60 89 13 88 | d1 ca 21 62 88 d2 0d d3 |..!.`...|..!b....|
|00001c50| d4 d5 24 29 29 87 22 20 | 5b 6b 65 79 2d 72 65 67 |..$))." |[key-reg|
|00001c60| 65 78 70 20 62 65 67 20 | 65 6e 64 20 73 6f 72 74 |exp beg |end sort|
|00001c70| 2d 72 65 67 65 78 70 2d | 72 65 63 6f 72 64 2d 65 |-regexp-|record-e|
|00001c80| 6e 64 20 72 65 63 6f 72 | 64 2d 72 65 67 65 78 70 |nd recor|d-regexp|
|00001c90| 20 72 65 76 65 72 73 65 | 20 6e 69 6c 20 65 71 75 | reverse| nil equ|
|00001ca0| 61 6c 20 22 22 20 22 5c | 5c 26 22 20 30 20 73 74 |al "" "\|\&" 0 st|
|00001cb0| 72 69 6e 67 2d 6d 61 74 | 63 68 20 22 5c 5c 60 5c |ring-mat|ch "\\`\|
|00001cc0| 5c 5c 5c 5b 31 2d 39 5d | 5c 5c 27 22 20 31 20 34 |\\\[1-9]|\\'" 1 4|
|00001cd0| 38 20 6e 61 72 72 6f 77 | 2d 74 6f 2d 72 65 67 69 |8 narrow|-to-regi|
|00001ce0| 6f 6e 20 72 65 2d 73 65 | 61 72 63 68 2d 66 6f 72 |on re-se|arch-for|
|00001cf0| 77 61 72 64 20 6d 61 74 | 63 68 2d 62 65 67 69 6e |ward mat|ch-begin|
|00001d00| 6e 69 6e 67 20 73 6f 72 | 74 2d 73 75 62 72 20 28 |ning sor|t-subr (|
|00001d10| 6c 61 6d 62 64 61 20 6e | 69 6c 20 28 62 79 74 65 |lambda n|il (byte|
|00001d20| 2d 63 6f 64 65 20 22 c3 | 08 c1 c4 23 85 14 00 c5 |-code ".|...#....|
|00001d30| c6 21 89 12 85 14 00 c7 | c6 21 62 87 22 20 5b 72 |.!......|.!b." [r|
|00001d40| 65 63 6f 72 64 2d 72 65 | 67 65 78 70 20 6e 69 6c |ecord-re|gexp nil|
|00001d50| 20 73 6f 72 74 2d 72 65 | 67 65 78 70 2d 72 65 63 | sort-re|gexp-rec|
|00001d60| 6f 72 64 2d 65 6e 64 20 | 72 65 2d 73 65 61 72 63 |ord-end |re-searc|
|00001d70| 68 2d 66 6f 72 77 61 72 | 64 20 6d 6f 76 65 20 6d |h-forwar|d move m|
|00001d80| 61 74 63 68 2d 65 6e 64 | 20 30 20 6d 61 74 63 68 |atch-end| 0 match|
|00001d90| 2d 62 65 67 69 6e 6e 69 | 6e 67 5d 20 34 29 29 20 |-beginni|ng] 4)) |
|00001da0| 28 6c 61 6d 62 64 61 20 | 6e 69 6c 20 28 62 79 74 |(lambda |nil (byt|
|00001db0| 65 2d 63 6f 64 65 20 22 | 08 62 87 22 20 5b 73 6f |e-code "|.b." [so|
|00001dc0| 72 74 2d 72 65 67 65 78 | 70 2d 72 65 63 6f 72 64 |rt-regex|p-record|
|00001dd0| 2d 65 6e 64 5d 20 31 29 | 29 20 28 6c 61 6d 62 64 |-end] 1)|) (lambd|
|00001de0| 61 20 6e 69 6c 20 28 62 | 79 74 65 2d 63 6f 64 65 |a nil (b|yte-code|
|00001df0| 20 22 c5 18 c6 09 21 83 | 0e 00 09 89 10 82 20 00 | "....!.|...... .|
|00001e00| c7 09 0a c3 23 83 1c 00 | c5 89 10 82 20 00 c8 c9 |....#...|.... ...|
|00001e10| c4 5c 22 88 c4 ca cb 8f | 29 87 22 20 5b 6e 20 6b |.\".....|)." [n k|
|00001e20| 65 79 2d 72 65 67 65 78 | 70 20 73 6f 72 74 2d 72 |ey-regex|p sort-r|
|00001e30| 65 67 65 78 70 2d 72 65 | 63 6f 72 64 2d 65 6e 64 |egexp-re|cord-end|
|00001e40| 20 74 20 6e 69 6c 20 30 | 20 6e 75 6d 62 65 72 70 | t nil 0| numberp|
|00001e50| 20 72 65 2d 73 65 61 72 | 63 68 2d 66 6f 72 77 61 | re-sear|ch-forwa|
|00001e60| 72 64 20 74 68 72 6f 77 | 20 6b 65 79 20 28 62 79 |rd throw| key (by|
|00001e70| 74 65 2d 63 6f 64 65 20 | 22 c1 c2 21 83 10 00 c3 |te-code |"..!....|
|00001e80| 08 21 c4 08 21 42 82 18 | 00 c5 c3 08 21 c4 08 21 |.!..!B..|....!..!|
|00001e90| 5c 22 87 22 20 5b 6e 20 | 66 62 6f 75 6e 64 70 20 |\"." [n |fboundp |
|00001ea0| 62 75 66 66 65 72 2d 73 | 75 62 73 74 72 69 6e 67 |buffer-s|ubstring|
|00001eb0| 2d 6c 65 73 73 70 20 6d | 61 74 63 68 2d 62 65 67 |-lessp m|atch-beg|
|00001ec0| 69 6e 6e 69 6e 67 20 6d | 61 74 63 68 2d 65 6e 64 |inning m|atch-end|
|00001ed0| 20 62 75 66 66 65 72 2d | 73 75 62 73 74 72 69 6e | buffer-|substrin|
|00001ee0| 67 5d 20 38 29 20 28 28 | 65 72 72 6f 72 20 28 62 |g] 8) ((|error (b|
|00001ef0| 79 74 65 2d 63 6f 64 65 | 20 22 c1 c2 c0 5c 22 87 |yte-code| "...\".|
|00001f00| 22 20 5b 6e 69 6c 20 74 | 68 72 6f 77 20 6b 65 79 |" [nil t|hrow key|
|00001f10| 5d 20 33 29 29 29 5d 20 | 36 29 29 5d 20 31 31 29 |] 3)))] |6))] 11)|
|00001f20| 29 0a 0a 28 64 65 66 75 | 6e 20 73 6f 72 74 2d 63 |)..(defu|n sort-c|
|00001f30| 6f 6c 75 6d 6e 73 20 28 | 72 65 76 65 72 73 65 20 |olumns (|reverse |
|00001f40| 26 6f 70 74 69 6f 6e 61 | 6c 20 62 65 67 20 65 6e |&optiona|l beg en|
|00001f50| 64 29 20 22 5c 0a 53 6f | 72 74 20 6c 69 6e 65 73 |d) "\.So|rt lines|
|00001f60| 20 69 6e 20 72 65 67 69 | 6f 6e 20 61 6c 70 68 61 | in regi|on alpha|
|00001f70| 62 65 74 69 63 61 6c 6c | 79 20 62 79 20 61 20 63 |beticall|y by a c|
|00001f80| 65 72 74 61 69 6e 20 72 | 61 6e 67 65 20 6f 66 20 |ertain r|ange of |
|00001f90| 63 6f 6c 75 6d 6e 73 2e | 0a 46 6f 72 20 74 68 65 |columns.|.For the|
|00001fa0| 20 70 75 72 70 6f 73 65 | 20 6f 66 20 74 68 69 73 | purpose| of this|
|00001fb0| 20 63 6f 6d 6d 61 6e 64 | 2c 20 74 68 65 20 72 65 | command|, the re|
|00001fc0| 67 69 6f 6e 20 69 6e 63 | 6c 75 64 65 73 0a 74 68 |gion inc|ludes.th|
|00001fd0| 65 20 65 6e 74 69 72 65 | 20 6c 69 6e 65 20 74 68 |e entire| line th|
|00001fe0| 61 74 20 70 6f 69 6e 74 | 20 69 73 20 69 6e 20 61 |at point| is in a|
|00001ff0| 6e 64 20 74 68 65 20 65 | 6e 74 69 72 65 20 6c 69 |nd the e|ntire li|
|00002000| 6e 65 20 74 68 65 20 6d | 61 72 6b 20 69 73 20 69 |ne the m|ark is i|
|00002010| 6e 2e 0a 54 68 65 20 63 | 6f 6c 75 6d 6e 20 70 6f |n..The c|olumn po|
|00002020| 73 69 74 69 6f 6e 73 20 | 6f 66 20 70 6f 69 6e 74 |sitions |of point|
|00002030| 20 61 6e 64 20 6d 61 72 | 6b 20 62 6f 75 6e 64 20 | and mar|k bound |
|00002040| 74 68 65 20 72 61 6e 67 | 65 20 6f 66 20 63 6f 6c |the rang|e of col|
|00002050| 75 6d 6e 73 20 74 6f 20 | 73 6f 72 74 20 6f 6e 2e |umns to |sort on.|
|00002060| 0a 41 20 70 72 65 66 69 | 78 20 61 72 67 75 6d 65 |.A prefi|x argume|
|00002070| 6e 74 20 6d 65 61 6e 73 | 20 73 6f 72 74 20 69 6e |nt means| sort in|
|00002080| 74 6f 20 72 65 76 65 72 | 73 65 20 6f 72 64 65 72 |to rever|se order|
|00002090| 2e 0a 0a 4e 6f 74 65 20 | 74 68 61 74 20 73 6f 72 |...Note |that sor|
|000020a0| 74 2d 63 6f 6c 75 6d 6e | 73 20 75 73 65 73 20 74 |t-column|s uses t|
|000020b0| 68 65 20 73 6f 72 74 20 | 75 74 69 6c 69 74 79 20 |he sort |utility |
|000020c0| 70 72 6f 67 72 61 6d 20 | 61 6e 64 20 74 68 65 72 |program |and ther|
|000020d0| 65 66 6f 72 65 0a 63 61 | 6e 6e 6f 74 20 77 6f 72 |efore.ca|nnot wor|
|000020e0| 6b 20 6f 6e 20 74 65 78 | 74 20 63 6f 6e 74 61 69 |k on tex|t contai|
|000020f0| 6e 69 6e 67 20 54 41 42 | 20 63 68 61 72 61 63 74 |ning TAB| charact|
|00002100| 65 72 73 2e 20 20 55 73 | 65 20 4d 2d 78 20 75 6e |ers. Us|e M-x un|
|00002110| 74 61 62 69 66 79 0a 74 | 6f 20 63 6f 6e 76 65 72 |tabify.t|o conver|
|00002120| 74 20 74 61 62 73 20 74 | 6f 20 73 70 61 63 65 73 |t tabs t|o spaces|
|00002130| 20 62 65 66 6f 72 65 20 | 73 6f 72 74 69 6e 67 2e | before |sorting.|
|00002140| 22 20 28 69 6e 74 65 72 | 61 63 74 69 76 65 20 22 |" (inter|active "|
|00002150| 50 0a 72 22 29 20 28 62 | 79 74 65 2d 63 6f 64 65 |P.r") (b|yte-code|
|00002160| 20 22 c9 88 8a c9 c9 c9 | c9 c9 c9 1d 1c 1b 1a 19 | "......|........|
|00002170| 18 0e 06 0e 07 5e 62 88 | 69 89 12 88 cb 20 88 60 |.....^b.|i.... .`|
|00002180| 89 10 88 0e 06 0e 07 5d | 62 88 69 89 13 88 cc 20 |.......]|b.i.... |
|00002190| 88 60 89 11 88 0a 0b 5e | 89 14 88 0a 0b 5d 89 15 |.`.....^|.....]..|
|000021a0| 88 cd ce 08 c8 23 85 4a | 00 cf d0 21 88 d1 08 09 |.....#.J|...!....|
|000021b0| d2 c8 c8 c9 0e 0a 83 5b | 00 d3 82 5c 5c 00 d4 d5 |.......[|...\\...|
|000021c0| 0c 50 d6 0d 50 26 09 2e | 06 29 87 22 20 5b 62 65 |.P..P&..|.)." [be|
|000021d0| 67 31 20 65 6e 64 31 20 | 63 6f 6c 2d 62 65 67 31 |g1 end1 |col-beg1|
|000021e0| 20 63 6f 6c 2d 65 6e 64 | 31 20 63 6f 6c 2d 73 74 | col-end|1 col-st|
|000021f0| 61 72 74 20 63 6f 6c 2d | 65 6e 64 20 62 65 67 20 |art col-|end beg |
|00002200| 65 6e 64 20 74 20 6e 69 | 6c 20 72 65 76 65 72 73 |end t ni|l revers|
|00002210| 65 20 62 65 67 69 6e 6e | 69 6e 67 2d 6f 66 2d 6c |e beginn|ing-of-l|
|00002220| 69 6e 65 20 66 6f 72 77 | 61 72 64 2d 6c 69 6e 65 |ine forw|ard-line|
|00002230| 20 73 65 61 72 63 68 2d | 62 61 63 6b 77 61 72 64 | search-|backward|
|00002240| 20 22 09 22 20 65 72 72 | 6f 72 20 22 73 6f 72 74 | "." err|or "sort|
|00002250| 2d 63 6f 6c 75 6d 6e 73 | 20 64 6f 65 73 20 6e 6f |-columns| does no|
|00002260| 74 20 77 6f 72 6b 20 77 | 69 74 68 20 74 61 62 73 |t work w|ith tabs|
|00002270| 2e 20 20 55 73 65 20 4d | 2d 78 20 75 6e 74 61 62 |. Use M|-x untab|
|00002280| 69 66 79 2e 22 20 63 61 | 6c 6c 2d 70 72 6f 63 65 |ify." ca|ll-proce|
|00002290| 73 73 2d 72 65 67 69 6f | 6e 20 22 73 6f 72 74 22 |ss-regio|n "sort"|
|000022a0| 20 22 2d 72 74 0a 22 20 | 22 2d 74 0a 22 20 22 2b | "-rt." |"-t." "+|
|000022b0| 30 2e 22 20 22 2d 30 2e | 22 5d 20 31 35 29 29 0a |0." "-0.|"] 15)).|
+--------+-------------------------+-------------------------+--------+--------+